﻿
#home-page {
    padding-left: 5rem;
    padding-right: 5rem;
}
    /*幻灯片组*/
    #home-page .m-slide-group__content {
        gap: 1rem;
        padding: .5rem 0;
    }

    #home-page .card-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /*分栏*/
    #home-page .left-content, #home-page {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

        #home-page .right-content {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        /*卡片组*/
        #home-page h2 {
            font-size: 3rem;
            font-weight: bold;
            letter-spacing: .4rem;
            margin-left: 5rem;
        }

        #home-page section {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .item img, #home-page .item .image {
            width: 100%;
            height: min-content;
        }

        /*内部纸片*/
        #home-page .item .m-chip {
            /* transition: .3s; */
        }

        #home-page .item .m-chip {
            background-color: var(--md-sys-color-primary) !important;
            border-color: var(--md-sys-color-primary) !important;
            color: var(--md-sys-color-on-primary) !important;
        }

        #home-page .item .m-chip--outlined {
            background-color: transparent !important;
            color: var(--md-sys-color-primary) !important;
            caret-color: var(--md-sys-color-primary) !important;
        }

        /*查看更多卡片*/
        #home-page .item.more-link {
            flex-direction: column !important;
            gap: 1rem;
            align-items: center;
            justify-content: center;
            width: 10rem !important;
        }

            #home-page .item.more-link i, #home-page .community-card .item i, #home-page .weekly-news-card .item i, #home-page .announcements-card .item i, #home-page .hot-tags-card .item i {
                color: var(--md-sys-color-primary);
            }

        /*轮播图*/
        #home-page .carousels-card, .cv-carousel-card {
            border-radius: var( --md-card-border-radius);
            box-shadow: 0 .125rem .25rem rgba(0,0,0,.01);
        }

            #home-page .carousels-card img, #home-page .carousels-card .m-responsive__content, #home-page .carousels-card .m-window-item, #home-page .carousels-card .m-responsive
            .cv-carousel-card img, .cv-carousel-card .m-responsive__content, .cv-carousel-card .m-window-item, .cv-carousel-card .m-responsive {
                border-radius: var( --md-card-border-radius);
            }

            #home-page .carousels-card .m-responsive__content, #home-page .cv-carousel-card .m-responsive__content {
                border-radius: var( --md-card-border-radius);
            }

        /*游戏列表*/
        #home-page .published-games-card .item, #home-page .upcoming-games-card .item, #home-page .free-games-card .item, #home-page .discount-games-card .item {
            display: flex;
            flex-direction: column;
        }

            #home-page .published-games-card .item .content, #home-page .upcoming-games-card .item .content, #home-page .free-games-card .item .content, #home-page .discount-games-card .item .content {
                margin: 1rem;
                display: flex;
                flex-direction: column;
                gap: .5rem;
                justify-content: space-between;
                height: 100%;
            }



        /*近期发布游戏*/

        #home-page .published-games-card .item {
            width: 17rem;
        }

        /*即将发布的游戏*/

        #home-page .upcoming-games-card .item {
            width: 17rem;
        }

        /*免费的游戏*/
        #home-page .free-games-card .item {
            width: 17rem;
        }
        /*折扣中的游戏*/
        #home-page .discount-games-card .item {
            width: 20rem;
        }

        /*最新动态*/



        #home-page .news-card .item {
            width: 28rem;
            gap: 1rem;
            padding: .7rem;
            flex-direction: row;
        }

        #home-page .news-card .group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .news-card img {
            height: 3rem !important;
            width: 3rem !important;
            border-radius: 50% !important;
        }

        #home-page .news-card .content {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
        }

        #home-page .news-card .user-image {
            display: flex;
        }

        #home-page .news-card .head {
            display: flex;
            gap: .5rem;
            align-items: center;
        }

        #home-page .news-card .name {
            color: var( --md-sys-color-on-surface) !important;
            font-weight: bold;
        }

        #home-page .news-card .time {
            color: var( --md-sys-color-on-surface) !important;
        }

        #home-page .news-card .text {
            color: var( --md-sys-color-on-surface) !important;
        }

        /*最新文章*/
        #home-page .latest-articles-card .row {
            margin-left: 3rem;
        }

        #home-page .latest-articles-card .item {
            display: flex;
            flex-direction: column;
            width: 20rem;
        }

        #home-page .latest-articles-card .content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .latest-articles-card .addinfo {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: .5rem;
        }

            #home-page .latest-articles-card .addinfo .m-chip {
                min-width: 4rem;
            }

        #home-page .latest-articles-card .author {
            display: flex;
            align-items: center;
            gap: .5rem;
        }

        #home-page .latest-articles-card .user-image {
            width: 1.5rem !important;
            border-radius: 50% !important;
        }

        #home-page .latest-articles-card .author .name {
            color: var( --md-sys-color-on-primary-container);
        }

        #home-page .latest-articles-card .time {
            color: var( --md-sys-color-on-primary-container);
            word-break: keep-all;
        }

        #home-page .latest-articles-card .head {
            padding: 1rem;
            display: flex;
            gap: 1rem;
            flex-direction: column;
            height: 100%;
            justify-content: space-between;
        }
        /*边栏*/
        #home-page .right-content h2 {
            font-size: 2rem !important;
            margin-left: 1rem !important;
            margin-top: 1rem;
        }

        /*社区*/
        #home-page .community-card .group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .community-card .item {
            display: flex;
            gap: 1rem;
            flex-direction: row;
            padding: .5rem 1rem;
        }

        #home-page .community-card .content {
            display: flex;
            flex-direction: column;
        }

            #home-page .community-card .content .name {
                font-weight: bold;
            }

        /*最近编辑*/

        #home-page .recently-edited-games-card .group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .recently-edited-games-card .item {
            flex-direction: row;
        }

        #home-page .recently-edited-games-card img {
            width: 8rem !important;
        }

        #home-page .recently-edited-games-card .name {
            font-weight: bold;
        }

        #home-page .recently-edited-games-card .time {
            color: var( --md-sys-color-on-primary-container);
        }

        #home-page .recently-edited-games-card .content {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 0.4rem 1rem;
        }
        /*最新视频*/
        #home-page .latest-videoes-card .group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .latest-videoes-card .item {
            flex-direction: row;
            width: 30rem;
        }

        #home-page .latest-videoes-card .image {
            width: 15rem !important;
            height: min-content;
        }

        #home-page .latest-videoes-card .content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

            #home-page .latest-videoes-card .content .name {
                font-weight: bold;
                font-size: 1rem;
            }


        #home-page .latest-videoes-card .addinfo {
            display: flex;
            justify-content: space-between;
        }

        #home-page .latest-videoes-card .author {
            display: flex;
            align-items: center;
            gap: .5rem;
        }


            #home-page .latest-videoes-card .author .name {
                color: var( --md-sys-color-on-primary-container);
            }

        #home-page .latest-videoes-card .time {
            color: var( --md-sys-color-on-primary-container);
            word-break: keep-all;
        }

        #home-page .latest-videoes-card .head {
            padding: .5rem 1rem;
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: space-between;
        }
        /*公告*/

        #home-page .announcements-card .content {
            display: flex;
            flex-direction: column;
        }

        #home-page .announcements-card .group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        #home-page .announcements-card .item {
            flex-direction: row;
            padding: .5rem 1rem;
            gap: .5rem;
        }

        #home-page .announcements-card .name.active {
            font-weight: bold;
        }
        /*友情链接*/
        #home-page .friend-links-card .group {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            margin-left: 3.5rem;
            margin-right: 3rem;
            gap: 1rem;
        }

        #home-page .friend-links-card .item {
            display: flex;
            flex-direction: column;
            width: 11rem;
        }

        #home-page .friend-links-card .content {
            padding: .7rem;
        }



/*推荐*/
.recommends-group {
    display: flex;
    gap: 3rem;
    flex-direction: column;
}

#home-page .recommends .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#home-page .recommends h2 {
    margin-left: 3rem !important;
}

#home-page .recommends .completed-card .content {
    display: flex;
    justify-content: center;
    padding: 2rem;
    font-size: 1rem;
}
/*纯文本*/
#home-page .plain-text-card.item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    #home-page .plain-text-card.item img {
        min-width: 25rem !important;
        width: 25rem !important;
        height: fit-content;
    }

    #home-page .plain-text-card.item .content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

/*图墙*/
.masa-image .m-image__image {
    border-radius: var( --md-card-border-radius);
    /* transition: .3s; */
}

.masa-image .item-image:active .m-image__image {
    border-radius: var( --md-card-active-border-radius);
}

.sub-group > .row {
    row-gap: 1.5rem;
}

.masa-image .image-name {
    display: none;
    /* transition: .3s; */
}

.masa-image .item-image:hover .image-name {
    display: flex;
    /*调用动画效果*/
    -webkit-animation-name: fadeIn; /*动画名称*/
    -webkit-animation-duration: .3s; /*动画持续时间*/
    -webkit-animation-iteration-count: 1; /*动画次数*/
    -webkit-animation-delay: 0s; /*延迟时间*/
}

.masa-image .item-image:active .image-name {
    border-radius: var( --md-card-active-border-radius);
}

.masa-image .image-name {
    background: linear-gradient(to bottom,rgba(0,0,0,0) 70%,rgba(0,0,0,.7));
    height: 100%;
    width: 100%;
    align-items: flex-end;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: var( --md-card-border-radius);
}

/*动画效果*/
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0; /*初始状态 透明度为0*/
    }

    20% {
        opacity: .2;
    }

    50% {
        opacity: .5; /*中间状态 透明度为0.5*/
    }

    70% {
        opacity: .7;
    }

    100% {
        opacity: 1; /*结尾状态 透明度为1*/
    }
}
/*画廊 游戏相册*/
#home-page .gallery-card {
    display: flex;
    flex-direction: column;
}

#home-page .gallery-card {
    display: flex;
    border-radius: var(--md-card-border-radius);
    /* transition: .3s; */
    white-space: normal;
}

    #home-page .gallery-card .head {
        display: flex;
        gap: 1rem;
        align-items: flex-end;
    }

        #home-page .gallery-card .head img {
            width: 13rem;
            height: fit-content;
            border-radius: 12px;
        }

    #home-page .gallery-card .content {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding: 1rem 1.5rem;
        gap: .5rem;
    }

    #home-page .gallery-card .gallery img {
        height: 20rem;
        width: fit-content;
    }

    #home-page .gallery-card .actions {
        display: flex;
        justify-content: space-around;
        padding: 1rem;
    }

    #home-page .gallery-card button {
        /* transition: .3s; */
    }

        #home-page .gallery-card button:hover {
            background-color: var(--md-sys-color-primary) !important;
            border-color: var(--md-sys-color-primary) !important;
            color: white !important;
        }

    #home-page .gallery-card .m-image {
        border-radius: 12px;
        cursor: pointer;
    }
/*每周速报*/
#home-page .weekly-news-card {
    height: 100%;
    justify-content: space-around;
}

    #home-page .weekly-news-card .content {
        display: flex;
        flex-direction: column;
    }

    #home-page .weekly-news-card .group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #home-page .weekly-news-card .item {
        flex-direction: row;
        padding: .5rem 1rem;
        gap: .5rem;
    }

    #home-page .weekly-news-card .name.active {
        font-weight: bold;
    }
/*生日角色*/
#home-page .birthday-card .default.item {
    padding: 1rem;
    gap: 1rem;
    flex-direction: row;
}

#home-page .birthday-card .default .content {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#home-page .birthday-card .default .head {
    font-size: 3rem;
}

#home-page .birthday-card .group .item {
    padding: .5rem 1rem;
    gap: 1rem;
    align-items: center;
    flex-direction: row;
}

    #home-page .birthday-card .group .item img {
        width: 5rem !important;
        height: 5rem;
        border-radius: 50% !important;
    }

    #home-page .birthday-card .group .item .content {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        justify-content: center;
    }

    #home-page .birthday-card .group .item .head {
        display: flex;
        gap: .5rem;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    #home-page .birthday-card .group .item .name {
        font-size: 1.5rem;
    }

    #home-page .birthday-card .group .item .debut-game {
        color: var( --md-sys-color-on-primary-container);
    }

#home-page .birthday-card .group {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}
/*关于我们*/
#home-page .cngal-about-card .links-groups {
    margin-top: 3rem;
}

/*看板娘*/
#home-page .kanban-card {
    display: flex;
    align-items: center;
    gap: 3rem !important;
}

    #home-page .kanban-card .quote-card + img {
        transform: rotateY(180deg);
    }

    #home-page .kanban-card .quote-card {
        max-width: 70rem;
    }

    #home-page .kanban-card img {
        width: 12rem;
    }

    #home-page .kanban-card .content {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
/*专题推荐*/
#home-page .evaluations-group {
    margin-left: 2.5rem;
    row-gap: 2rem;
    padding-right: 2rem;
}

#home-page .evaluations-card .articles-group img {
    width: 10rem !important;
}

#home-page .evaluations-card .head {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .5rem 1rem;
    justify-content: space-between;
}

#home-page .evaluations-card .content {
    font-size: 1rem;
    font-weight: bold;
}

#home-page .evaluations-card .addinfo {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#home-page .articles-group {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

    #home-page .articles-group .item {
        flex-direction: row;
    }

#home-page .evaluations-card .type {
    color: var( --md-sys-color-on-primary-container);
}

#home-page .evaluations-card .evaluations-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/*最新评论*/
#home-page .latast-comments-card .item {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    flex-direction: row;
}

#home-page .latast-comments-card .user-image {
    width: 3rem !important;
    border-radius: 50% !important;
    height: 3rem !important;
}

#home-page .latast-comments-card .content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    word-break: break-word;
    width: 100%;
}

#home-page .latast-comments-card .name {
    font-size: 1rem;
    font-weight: bold;
}

#home-page .latast-comments-card .time {
    text-align: end;
}

#home-page .latast-comments-card .group {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}
/*热门标签*/
#home-page .hot-tags-card .group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

#home-page .hot-tags-card .item {
    padding: .3rem 1rem .3rem .5rem;
    flex-direction: row;
    gap: .5rem;
}

#home-page .hot-tags-card .content {
    display: flex;
    align-items: center;
}

/*CV专题页*/
/*动态*/
#cv-news .content-card {
    gap: .7rem;
}

#cv-news .item {
    gap: 1rem;
    flex-direction: row;
    padding: .5rem;
}

#cv-news .group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#cv-news img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

#cv-news a {
    display: flex;
}

#cv-news .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#cv-news .head {
    display: flex;
    gap: .5rem;
}

#cv-news .name {
    color: var( --md-sys-color-on-primary-container);
    font-weight: bold;
}

#cv-news .time {
    color: var( --md-sys-color-on-primary-container);
}

#cv-news .text {
    color: var( --md-sys-color-on-primary-container);
}

.cv-carousel-card {
    display: flex;
    align-items: center;
    height: 100%;
}
/*按钮组*/
#home-page .button-group-card .button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
}

    #home-page .button-group-card .button-group .button-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        width: 20%;
    }
